package com.searchschool.jsf;

import java.io.Serializable;

import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;


@ManagedBean
@SessionScoped

public class WatermarkBean implements Serializable{  

	private static final long serialVersionUID = 1L;
	private String keyword;  
  
    public String getKeyword() {  
        return keyword;  
    }  
  
    public void setKeyword(String keyword) {  
        this.keyword = keyword;  
    }  
  
    public void search() {  
        FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,"No results found with ", "'" + keyword + "'"));  
    }  
}  